package com.hliushi.learn.service.impl;

import com.hliushi.learn.service.EmailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

/**
 * @author llhuang10
 * @date 2021/9/6 14:49
 */
@Slf4j
@Service
@Profile("prod")
public class ProdEmailServiceImpl implements EmailService {
    @Override
    public void send() {
        log.info("ProdEmailServiceImpl.send().生产环境执行邮件的发送.");
        // 具体的邮件发送代码.
        // mail.send();
    }
}
